package com.jason.www.commons.entity;

import java.util.Date;

public class GiftCardExcelBean {
    public static String[] getExcelFieldsColumns() {
        return new String[] {
            "cardNo","price","license","ditch","expireTime","createTime","mobile","activeStr","licenseTime"
        };
    }

    public static String[] getExcelFieldsHeaders() {
        return new String[] {
            "卡号","卡面值","激活码","发卡渠道","有效期至","发卡时间","手机号","激活状态","激活时间"
        };
    }

    private String cardNo;
    private Float price;
    private String license;
    private Boolean active;
    private String activeStr;
    private String mobile;
    private String ditch;
    private Date expireTime;
    private Date createTime;
    private Date licenseTime;

    public String getCardNo() {
        return cardNo;
    }

    public void setCardNo(String cardNo) {
        this.cardNo = cardNo;
    }

    public Float getPrice() {
        return price;
    }

    public void setPrice(Float price) {
        this.price = price;
    }

    public String getLicense() {
        return license;
    }

    public void setLicense(String license) {
        this.license = license;
    }

    public Boolean getActive() {
        return active;
    }

    public void setActive(Boolean active) {
        this.active = active;
        if(active){
            this.activeStr ="已激活";
        }else{
            this.activeStr ="未激活";
        }
    }

    public String getActiveStr() {
        if(active){
            return "已激活";
        }else{
            return "未激活";
        }
    }

    public void setActiveStr(String activeStr) {
        this.activeStr = activeStr;
    }

    public String getMobile() {
        return mobile;
    }

    public void setMobile(String mobile) {
        this.mobile = mobile;
    }

    public String getDitch() {
        return ditch;
    }

    public void setDitch(String ditch) {
        this.ditch = ditch;
    }

    public Date getExpireTime() {
        return expireTime;
    }

    public void setExpireTime(Date expireTime) {
        this.expireTime = expireTime;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getLicenseTime() {
        return licenseTime;
    }

    public void setLicenseTime(Date licenseTime) {
        this.licenseTime = licenseTime;
    }
}
